-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: 예약 API Request Body 및 서비스 로직 리팩토링 #99
Conversation
# Conflicts: # src/main/java/com/fc/shimpyo_be/domain/reservation/service/ReservationService.java # src/test/java/com/fc/shimpyo_be/domain/reservation/unit/service/ReservationServiceTest.java
- @configuration to @TestConfiguration
…ctDetailAddress' 필드 추가
…class) 추가 - DatabaseCleanUp를 주입받아 사용하기 위해 @import(TestDBCleanerConfig.class) 추가
- @Sql 모두 제거하고 @beforeeach로 필요한 테스트 데이터 생성 - DatabaseCleanUp 사용하기 위해 @import(TestDBCleanerConfig.class) 추가
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
수고하셨습니당~ 전체적으로 생성자를 통해 객체를 생성하는 것을 확인했습니다.
Record는 All Arguments Constructor를 자동으로 생성하기 때문에, 나중에 필드 종류를 바꾸거나 순서만 바꿔도, 생성자가 쓰이고 있는 모든 곳을 수정하거나, 매번 생성자를 추가해서 새로운 All Args Constructor에게 전달해야 합니다!
Builder를 통해 객체를 생성하도록 수정하는 것이 좋을 것 같습니다~~
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
고생하셨습니다!!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
수고하셨어용!!
💡 Motivation
📌 Changes
🫱🏻🫲🏻 To Reviewers
This close #97